package com.mycompany.app.user.dao;

import java.util.List;

import com.mycompany.app.model.User;
 
/**
 *
 * User DAO Interface
 *
 * @author onlinetechvision.com
 * @since 25 Mar 2012
 * @version 1.0.0
 *
 */
public interface IUserDAO {
 
    /**
     * Add User
     *
     * @param  User user
     */
    void addUser(User user);
 
    /**
     * Update User
     *
     * @param  User user
     */
    void updateUser(User user);
 
    /**
     * Delete User
     *
     * @param  User user
     */
    void deleteUser(User user);
 
    /**
     * Get User
     *
     * @param  int User Id
     */
    User getUserById(int id);
    
    /**
     * Get User
     *
     * @param  int User Id
     */
     User getUserByUserName(String username);
 
    /**
     * Get User List
     *
     */
     List<User> getUsers();
    
    
    
}